import http from "@/utils/http.js";

//登录
export function getLogin(data) {
    return http({
        method:"POST",
        url:"/users/login",
        data
    })
}

//获取所有用户信息
export function getUsers() {
    return http({
        method:"GET",
        url:"/users/getUsers"
    })
}

//获取用户信息
export function getUserInfo(id) {
    return http({
        method:"GET",
        url:"/users/getUser"
    })
}

//修改用户信息
export function updateUser(data) {
    return http({
        method:"POST",
        url:"/users/updateUser",
        data
    })
}